{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "73001bdf",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "大二上课程表\n",
      "2021-10-08-Fri 21:23:10\n",
      "虽然是周五了也要好好学习哦\n"
     ]
    }
   ],
   "source": [
    "import datetime\n",
    "print(\"大二上课程表\")\n",
    "# 输出现在的时间\n",
    "now = datetime.datetime.now().strftime(\"%Y-%m-%d-%a %H:%M:%S\")\n",
    "print(now)\n",
    "\n",
    "day = datetime.datetime.today().weekday() # 表示今天日期是周几\n",
    "time = datetime.datetime.today().hour # 表示现在是几点\n",
    "week_day= int(day)\n",
    "week_time= int(time)\n",
    "\n",
    "# 01234分别表示周一到周五\n",
    "if week_day==0:\n",
    "    print(\"今天是被英语包围的一天嗷\")\n",
    "    if week_time<12:\n",
    "        print(\"不要忘记午休嗷\")\n",
    "    elif week_time>12 and week_time<18: \n",
    "        print(\"8-9节大学英语\")\n",
    "    elif week_time>18:\n",
    "        print(\"不要忘记学习嗷\")\n",
    "\n",
    "elif week_day==1:\n",
    "    print(\"今天实践课程拉满啦\")\n",
    "    if week_time<10:\n",
    "        print(\"1-2节毛概实践\")\n",
    "    if week_time>10 and week_time<12:\n",
    "        print(\"不要忘记午休嗷\")\n",
    "    if week_time>12 and week_time<18:\n",
    "        print(\"8-9节创业实践\")\n",
    "    if week_time>18:\n",
    "        print(\"不要忘记学习嗷\")\n",
    "\n",
    "elif week_day==2:\n",
    "    print(\"最多课的一天呢\")\n",
    "    if week_time<10:\n",
    "        print(\"1-2节定向越野\")\n",
    "    if week_time>10 and week_time<12:\n",
    "        print(\"3-5节毛概实践\")\n",
    "    if week_time>12 and week_time<18:\n",
    "        print(\"周三公休日\")\n",
    "    if week_time>18:\n",
    "        print(\"12-13节大学英语\")\n",
    "\n",
    "elif week_day==3:\n",
    "    print(\"yeah，终于上专业课了！\")\n",
    "    if week_time<12:\n",
    "        print(\"3-5节Python\")\n",
    "    if week_time>12 and week_time<18:\n",
    "        print(\"8-9节广告文案写作\")\n",
    "    if week_time>18:\n",
    "        print(\"不要忘记学习嗷\")\n",
    "\n",
    "elif week_day==4:\n",
    "    print(\"虽然是周五了也要好好学习哦\")\n",
    "    if week_time < 12:\n",
    "        print(\"3-5节网站运营与管理\")\n",
    "    if week_time > 12 and week_time < 18:\n",
    "        print(\"结束一周课程happy！\")\n",
    "\n",
    "else:\n",
    "    print(\"周末愉快！\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d1070745",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
